package com.egg.basic.entity.pay;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.egg.common.core.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 退款记录
 * </p>
 *
 * @author east
 * @since 2021-11-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "basic_refund_record")
@ApiModel(value = "RefundRecord对象", description = "退款记录")
public class RefundRecord extends BaseEntity {


    @ApiModelProperty(value = "支付ID")
    @TableField(value = "pay_id")
    private Long payRecordId;

    @ApiModelProperty(value = "交易号")
    @TableField(value = "trade_no")
    private String tradeNo;

    @ApiModelProperty(value = "用户ID")
    @TableField(value = "user_id")
    private Long userId;

    @ApiModelProperty(value = "用户OPENID")
    @TableField(value = "openid")
    private String openid;

    @ApiModelProperty(value = "退款的值(分)")
    @TableField(value = "amount")
    private Long amount;

    @ApiModelProperty(value = "交易状态", notes = "com.egg.basic.enums.pay.TradeStateEnum")
    @TableField(value = "trade_state")
    private String tradeState;

    @ApiModelProperty(value = "退款返回数据")
    @TableField(value = "body")
    private String body;

    @ApiModelProperty(value = "退款错误信息")
    @TableField(value = "fail_message")
    private String failMessage;


}
